//package com.ruoyi.quartz.controller;
//
//import com.github.pagehelper.PageHelper;
//import com.github.pagehelper.PageInfo;
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.page.PageDomain;
//import com.ruoyi.common.core.page.TableDataInfo;
//import com.ruoyi.common.core.page.TableSupport;
//import com.ruoyi.quartz.service.IOrderListService;
//import com.ruoyi.quartz.service.IOrderService;
//import com.ruoyi.system.domain.DTO.OrderListDto;
//import com.ruoyi.system.domain.DTO.SurchargeDTO;
//import com.ruoyi.system.domain.vo.OrderLogVo;
//import com.ruoyi.system.domain.vo.SurchargeResultVo;
//import com.ruoyi.system.domain.vo.SurchargeReturnVo;
//import com.ruoyi.system.domain.vo.SurchargeVo;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * 订单信息
// *
// */
//@Controller
//@RequestMapping("/business/fee")
//public class FeeController extends BaseController
//{
//
//    @Autowired
//    private IOrderService iOrderService;
//
//    @RequiresPermissions("business:order:view")
//    @GetMapping()
//    public String feeData()
//    {
//        return  "business/fee/fee";
//    }
//
//
//    @RequiresPermissions("business:order:list")
//    @PostMapping("/feeList")
//    @ResponseBody
//    public TableDataInfo feeList(SurchargeDTO surchargeDTO) {
//        if(surchargeDTO.getProductId().length() == 0){
//            return null;
//        }
//        List<SurchargeResultVo> surchargeResultVoList = new ArrayList<SurchargeResultVo>();
//        List<SurchargeResultVo> returnSurchargeResultVoList = new ArrayList<SurchargeResultVo>();
//        surchargeResultVoList = iOrderService.feeList(surchargeDTO);
//        PageDomain pageDomain = TableSupport.buildPageRequest();
//        Integer pageNum = pageDomain.getPageNum();
//        Integer pageSize = pageDomain.getPageSize();
//        int start = (pageNum -1)*pageSize;
//        int end = pageNum*pageSize;
//        if(surchargeResultVoList!=null){
//            int count = 0;
//            for(SurchargeResultVo forSurchargeResultVo:surchargeResultVoList){
//                if(count>=start && count<end){
//                    returnSurchargeResultVoList.add(forSurchargeResultVo);
//                }
//                count++;
//            }
//        }
//        TableDataInfo rspData = new TableDataInfo();
//        rspData.setCode(0);
//        rspData.setRows(returnSurchargeResultVoList);
//        rspData.setTotal(new PageInfo(surchargeResultVoList).getTotal());
//        return rspData;
//    }
//
//
//}
